import request from '@/utils/request'
const api_name = '/edu/teacher'

export default{
  // 获取所有讲师信息
  getList() {
    return request({// 封装axios
      url: api_name,
      method: 'get'
    })
  },

  getById(id) {
    return request({
      url: `${api_name}/${id}`,
      method: 'get'
    })
  },

  getPageList(page, limit) {
    return request({
      url: `${api_name}/${page}/${limit}`,
      method: 'get'
    })
  }
}
